﻿
   
function setpage(newPage)
{
    
	if ((document.all.pageIndex.value=="") ||(document.all.pageIndex.value!=newPage))
	{
		document.all.pageIndex.value=newPage;
		document.all.Event.value = "false";
		document.forms[0].submit();
		
	}
}
function DeleteRow() {
    var tr = window.event.srcElement;
	while ((tr.tagName!="TR")&&(tr.parentElement!=null))
	{ 
		tr=tr.parentElement;
	}
	if (tr.tagName=="TR") 
	{
	    tr.style.display="none";
	}
	
}
function Deletedeth() {
    var tr = window.event.srcElement;
	while ((tr.tagName!="TR")&&(tr.parentElement!=null))
	{ 
		tr=tr.parentElement;
	}
	if (tr.tagName=="TR") 
	{
	   window.location.reload()
	}
	
}

//移上整行背影变色
function OverColor(){
   var the_obj = event.srcElement;
   if(the_obj.tagName.toLowerCase() == "td"){
       the_obj=the_obj.parentElement;
       the_obj.oBgc=the_obj.currentStyle.backgroundColor;
	   the_obj.oFc=the_obj.currentStyle.color;
       the_obj.style.backgroundColor='#E8F5FF';
//       the_obj.style.color='blue';
//       the_obj.style.textDecoration='underline';
   }
}
function OutColor(){
   var the_obj = event.srcElement;
   if(the_obj.tagName.toLowerCase() == "td"){
       the_obj=the_obj.parentElement;
       the_obj.style.backgroundColor= '#ffffff'
//       the_obj.style.backgroundColor=the_obj.oBgc;
//       the_obj.style.color=the_obj.oFc;
//       the_obj.style.textDecoration='';
   }
}




